﻿<Window x:Class="Grafika_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" WindowState="Maximized" MinHeight="500" MinWidth="500">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="150"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>
            <Button Grid.Row="0" Content="Render" Click="Button_Click"/>
            <TextBlock Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Camera"/>
            <StackPanel Grid.Row="2" Orientation="Horizontal">
                <TextBlock Padding="5" Text="X: " TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtBoxCameraX" Text="0"/>
                <TextBlock Padding="5" Text="Y:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtBoxCameraY" Text="0" />
                <TextBlock Padding="5" Text="Z:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtBoxCameraZ" Text="200"/>
            </StackPanel>
            <StackPanel Grid.Row="3" Orientation="Horizontal">
                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Text="Ilość trójkątów:" Padding="5"/>
                <TextBox MaxLength="4" Width="30" Text="100" x:Name="txtBoxTriangleCount"/>
            </StackPanel>

            <ComboBox Grid.Row="4" SelectedIndex="0" x:Name="cmbBoxRenderType" >
                <ComboBoxItem Content="Siatka"/>
                <ComboBoxItem Content="Płaskie"/>
                <ComboBoxItem Content="Phong"/>
            </ComboBox>
            <StackPanel Grid.Row="5" Orientation="Horizontal">
                <TextBlock Padding="5" Text="Ambient"/>
                <Slider Width="80" Padding="5" x:Name="sldAmbientLight"/>
            </StackPanel>
            <StackPanel Grid.Row="6" Orientation="Horizontal">
                <TextBlock Padding="5" Text="X: " TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeX" Text="0"/>
                <TextBlock Padding="5" Text="Y:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeY" Text="0"/>
                <TextBlock Padding="5" Text="Z:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeZ" Text="0"/>
            </StackPanel>
            <StackPanel Grid.Row="7" Orientation="Horizontal">
                <TextBlock Padding="5" Text="X2 " TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeX2" Text="0"/>
                <TextBlock Padding="5" Text="Y2:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeY2" Text="0"/>
                <TextBlock Padding="5" Text="Z2:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeZ2" Text="0"/>
            </StackPanel>
            <ComboBox Grid.Row="8" SelectedIndex="0" x:Name="cmbShapeType">
                <ComboBoxItem Content="Sfera"/>
                <ComboBoxItem Content="Walec"/>
            </ComboBox>
            <StackPanel Grid.Row="9" Orientation="Horizontal">
                <TextBlock Padding="5" Text="R1: " TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeR" Text="0"/>
                <TextBlock Padding="5" Text="H:" TextAlignment="Center" VerticalAlignment="Center"/>
                <TextBox  MaxLength="4" x:Name="txtShapeH" Text="0"/>
            </StackPanel>

            <ComboBox Grid.Row="10" SelectedIndex="0" x:Name="cmbShapeColor">
                <ComboBoxItem Background="Red" Content="Czerwony"/>
                <ComboBoxItem Background="Green" Content="Zielony"/>
                <ComboBoxItem Background="Blue" Content="Niebieski"/>
                <ComboBoxItem Background="Purple" Content="Fioletowy"/>
                <ComboBoxItem Background="Yellow" Content="Zolty"/>
            </ComboBox>
            <Button Grid.Row="11" Name="shapeButton" Click="shapeButton_Click">Dodaj</Button>
            <ListView x:Name="lstShapes" Grid.Row="12">

            </ListView>
            <Button Grid.Row="13" x:Name="deleteShape" Click="deleteShape_Click">Usuń</Button>
        </Grid>
        <Grid Grid.Column="0">
            <Canvas x:Name="canvas"/>
        </Grid>
    </Grid>
</Window>
